/*
 * Status.java
 *
 * Created on 29 Май 2008 г., 17:52
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package protocol;

import DrawControls.icons.*;

/**
 *
 * @author Vladimir Krukov
 */
public final class Status {
    public static final byte I_STATUS_OFFLINE		= 0;
    public static final byte I_STATUS_ONLINE		= 1;
	public static final byte I_STATUS_FFC			= 2;
    public static final byte I_STATUS_AWAY			= 3;
    public static final byte I_STATUS_DND			= 4;
	public static final byte I_STATUS_NA			= 5;
	
	public static final byte I_STATUS_EVIL       	= 6;
    public static final byte I_STATUS_DEPRESSION 	= 7;
    public static final byte I_STATUS_HOME       	= 8;
    public static final byte I_STATUS_WORK       	= 9;
    public static final byte I_STATUS_LUNCH      	= 10;
	
	public static final byte I_STATUS_INVISIBLE 	= 11;
    public static final byte I_STATUS_NOT_IN_LIST	= 12;

    
    public final void setStatusIndex(byte statusIndex) {
        this.statusIndex = statusIndex;
    }
    private boolean is(final byte s) {
        return s == statusIndex;
    }
    private Status(byte index) {
        statusIndex = index;
    }
    public Status() {
    }

    public static final Status offlineStatus = new Status(Status.I_STATUS_OFFLINE);
    private byte statusIndex = 0;
    private String text;
    public byte getStatusIndex() {
        return statusIndex;
    }

    public final String getText() {
        return text;
    }
    public void setText(String txt) {
        text = txt;
    }
}
